﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchVBook.ascx.vb"
    Inherits="WebForm_SearchVBook" %>
<%@ Register src="~/WebForm/CommonControl/VolunteerQueryControl.ascx" tagname="VolunteerQueryControl" tagprefix="uc1" %>

<uc1:VolunteerQueryControl ID="VolunteerQueryControl1" runat="server" LoadOnStartUp="true" />
<table>
    <asp:PlaceHolder ID="phUpload" runat="server">
    <tr>
        <td>
            <asp:Label ID="lblUpload" runat="server"  Text="<%$ Resources:UploadFile %>"></asp:Label>
            <asp:FileUpload ID="FileUpload1" runat="server" Width="300px" />
            <asp:Button ID="btnUpload" runat="server" Text="<%$ Resources:Upload %>" 
                     ValidationGroup="CheckGroup"/>
            <asp:HyperLink ID="hlinklExcelImport" Font-Size="12px" meta:resourcekey="hlinklExcelImport"  NavigateUrl="~/Downloads/SystemFile/ImportVBookListSample.xls" runat="server"></asp:HyperLink>

        </td>
    </tr>
    </asp:PlaceHolder>
    <tr>
        <td>
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
            <asp:Button ID="btnExcel" runat="server" meta:resourcekey="btnExcel" />
            <asp:HyperLink ID="hlinkDoc" Font-Size="12px" meta:resourcekey="hlinkDoc"  NavigateUrl="~/Downloads/SystemFile/ExportVBookSample.doc" runat="server"></asp:HyperLink>

        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" AllowHoverSelect="false" meta:resourcekey="gv" AllowSorting="true" MySortExpression="v.VolunteerID" DataKeyNames="VolunteerID">
    <Columns>
        <asp:BoundField DataField="VOrganizationName" meta:resourcekey="bfVOrganizationName"  SortExpression="VOrganizationName" />
          <My:VolunteerIDBoundField DataField="VolunteerID" meta:resourcekey="bfVolunteerID"
            ReadOnly="True" SortExpression="v.VolunteerID" />
        <asp:BoundField DataField="VolunteerName" meta:resourcekey="bfVolunteerName" SortExpression="v.VolunteerName" />
        <asp:TemplateField meta:resourcekey="bfTrainingBHour" ItemStyle-HorizontalAlign="Center">
            <itemtemplate>
                <%#Eval("TrainingBHour")%>
            </itemtemplate>
        </asp:TemplateField>
        <asp:TemplateField meta:resourcekey="bfTrainingSHour" ItemStyle-HorizontalAlign="Center">
            <itemtemplate>
                <%#Eval("TrainingSHour")%>
            </itemtemplate>
        </asp:TemplateField>
        <asp:TemplateField meta:resourcekey="bfTrainingWHour" ItemStyle-HorizontalAlign="Center">
            <itemtemplate>
                <%#Eval("TrainingWHour")%>
            </itemtemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton ID="lknSelect" runat="server" meta:resourcekey="lknSelect" CommandName="Select"></asp:LinkButton>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>        
    </Columns>
</My:MyGridView>
<%#Eval("TownName") %>